package summer_vacation.liulee.month8.day20150818;

/**
 * Created by Administrator on 2015/9/3.
 */
public class Java40 {
    public static void main(String[] args) {
        int a=1,b=2,c=3;
        long sum=0;
        for (int i=1;a<=99;i++){
            b=a+1;
            c=b+1;
            sum=sum+(a*b*c);
            a=c;
        }
//        while(a<100){
//            b=a+1;
//            c=a+2;
//            sum=sum+(a*b*c);
//            System.out.println(a+"*"+b+"*"+c+"   ");
//            a= a+2;
//
//        }
        System.out.println(sum);
    }
}
